package com.example;

import com.example.Repository.SignInDataMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class AttendanceController
{
    private final SignInDataMapper signInDataMapper;

    public AttendanceController(SignInDataMapper signInDataMapper)
    {
        this.signInDataMapper = signInDataMapper;
    }

    @GetMapping("/Attendance/data")
    public Map<String, Integer> getSignInData()
    {
        return signInDataMapper.getSignInData();
    }
}